Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 1, 2025

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Updates the requirements on pytest-asyncio to permit the latest version.

Release notes

Sourced from pytest-asyncio's releases.

pytest-asyncio 1.0.0

1.0.0 - 2025-05-26

Removed

  • The deprecated event_loop fixture. (#1106)

Added

  • Prelimiary support for Python 3.14 (#1025)

Changed

  • Scoped event loops (e.g. module-scoped loops) are created once rather than per scope (e.g. per module). This reduces the number of fixtures and speeds up collection time, especially for large test suites. (#1107)
  • The loop_scope argument to pytest.mark.asyncio no longer forces that a pytest Collector exists at the level of the specified scope. For example, a test function marked with pytest.mark.asyncio(loop_scope="class") no longer requires a class surrounding the test. This is consistent with the behavior of the scope argument to pytest_asyncio.fixture. (#1112)

Fixed

  • An error caused when using pytest's [--setup-plan]{.title-ref} option. (#630)
  • Unsuppressed import errors with pytest option --doctest-ignore-import-errors (#797)
  • A "fixture not found" error in connection with package-scoped loops (#1052)

Notes for Downstream Packagers

  • Removed a test that had an ordering dependency on other tests. (#1114)
Commits
  • 5ef97bd chore: Prepare release of v1.0.0.
  • f212e24 docs: Mention fix of #797.
  • 32c1d10 test: Removed obsolete test for async_gen_fixtures.
  • 627ce92 [pre-commit.ci] pre-commit autoupdate
  • a55ff36 Build(deps): Bump pluggy from 1.5.0 to 1.6.0 in /dependencies/default
  • 633389f Build(deps): Bump hypothesis in /dependencies/default
  • 0c99466 docs: Fixed an error that reported a missing event_loop fixture when using pa...
  • 0688d17 ci: Replace Github template expansion with env variable expansion.
  • 2adcf52 ci: Quote Github variable expansion.
  • dd0fac9 ci: Fixed a bug that prevented release notes from being extracted from a Git ...
  • Additional commits viewable in compare view

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 1, 2025
Copy link

codecov bot commented Jul 1, 2025

❌ 6 Tests Failed:

Tests completed Failed Passed Skipped
793 6 787 0
View the top 3 failed test(s) by shortest run time
tests.adapter_tests_async.test_async_sanic.TestSanic::test_shortcuts
Stack Traces | 0.778s run time
self = <tests.adapter_tests_async.test_async_sanic.TestSanic object at 0x7f4945711f10>

    @pytest.mark.asyncio
    async def test_shortcuts(self):
        app = AsyncApp(
            client=self.web_client,
            signing_secret=self.signing_secret,
        )
    
        async def shortcut_handler(ack):
            await ack()
    
        app.shortcut("test-shortcut")(shortcut_handler)
    
        input = {
            "type": "shortcut",
            "token": "verification_token",
            "action_ts": "111.111",
            "team": {
                "id": "T111",
                "domain": "workspace-domain",
                "enterprise_id": "E111",
                "enterprise_name": "Org Name",
            },
            "user": {"id": "W111", "username": "primary-owner", "team_id": "T111"},
            "callback_id": "test-shortcut",
            "trigger_id": "111.111.xxxxxx",
        }
    
        timestamp, body = str(int(time())), f"payload={quote(json.dumps(input))}"
    
        api = Sanic(name=self.unique_sanic_app_name())
        app_handler = AsyncSlackRequestHandler(app)
    
        @api.post("/slack/events")
        async def endpoint(req: Request):
            return await app_handler.handle(req)
    
        _, response = await api.asgi_client.post(
            url="/slack/events",
            content=body,
            headers=self.build_headers(timestamp, body),
        )
>       assert response.status_code == 200
E       assert 500 == 200
E        +  where 500 = <Response [500 Internal Server Error]>.status_code

tests/adapter_tests_async/test_async_sanic.py:153: AssertionError
tests.adapter_tests_async.test_async_sanic.TestSanic::test_events
Stack Traces | 1.2s run time
self = <tests.adapter_tests_async.test_async_sanic.TestSanic object at 0x7f49457113d0>

    @pytest.mark.asyncio
    async def test_events(self):
        app = AsyncApp(
            client=self.web_client,
            signing_secret=self.signing_secret,
        )
    
        async def event_handler():
            pass
    
        app.event("app_mention")(event_handler)
    
        input = {
            "token": "verification_token",
            "team_id": "T111",
            "enterprise_id": "E111",
            "api_app_id": "A111",
            "event": {
                "client_msg_id": "9cbd4c5b-7ddf-4ede-b479-ad21fca66d63",
                "type": "app_mention",
                "text": "<@W111> Hi there!",
                "user": "W222",
                "ts": "1595926230.009600",
                "team": "T111",
                "channel": "C111",
                "event_ts": "1595926230.009600",
            },
            "type": "event_callback",
            "event_id": "Ev111",
            "event_time": 1595926230,
            "authed_users": ["W111"],
        }
        timestamp, body = str(int(time())), json.dumps(input)
    
        api = Sanic(name=self.unique_sanic_app_name())
        app_handler = AsyncSlackRequestHandler(app)
    
        @api.post("/slack/events")
        async def endpoint(req: Request):
            return await app_handler.handle(req)
    
        _, response = await api.asgi_client.post(
            url="/slack/events",
            content=body,
            headers=self.build_headers(timestamp, body),
        )
>       assert response.status_code == 200
E       assert 500 == 200
E        +  where 500 = <Response [500 Internal Server Error]>.status_code

tests/adapter_tests_async/test_async_sanic.py:109: AssertionError
tests.adapter_tests_async.test_async_sanic.TestSanic::test_commands
Stack Traces | 1.36s run time
self = <tests.adapter_tests_async.test_async_sanic.TestSanic object at 0x7f4945711c70>

    @pytest.mark.asyncio
    async def test_commands(self):
        app = AsyncApp(
            client=self.web_client,
            signing_secret=self.signing_secret,
        )
    
        async def command_handler(ack):
            await ack()
    
        app.command("/hello-world")(command_handler)
    
        input = (
            "token=verification_token"
            "&team_id=T111"
            "&team_domain=test-domain"
            "&channel_id=C111"
            "&channel_name=random"
            "&user_id=W111"
            "&user_name=primary-owner"
            "&command=%2Fhello-world"
            "&text=Hi"
            "&enterprise_id=E111"
            "&enterprise_name=Org+Name"
            "&response_url=https%3A%2F%2Fhooks.slack.com%2Fcommands%2FT111%2F111%2Fxxxxx"
            "&trigger_id=111.111.xxx"
        )
        timestamp, body = str(int(time())), input
    
        api = Sanic(name=self.unique_sanic_app_name())
        app_handler = AsyncSlackRequestHandler(app)
    
        @api.post("/slack/events")
        async def endpoint(req: Request):
            return await app_handler.handle(req)
    
        _, response = await api.asgi_client.post(
            url="/slack/events",
            content=body,
            headers=self.build_headers(timestamp, body),
        )
>       assert response.status_code == 200
E       assert 500 == 200
E        +  where 500 = <Response [500 Internal Server Error]>.status_code

tests/adapter_tests_async/test_async_sanic.py:197: AssertionError
tests.adapter_tests_async.socket_mode.test_async_websockets.TestSocketModeWebsockets::test_events
Stack Traces | 8.02s run time
self = <tests.adapter_tests_async.socket_mode.test_async_websockets.TestSocketModeWebsockets object at 0x7f4946967f40>

    @pytest.mark.asyncio
    async def test_events(self):
        start_socket_mode_server(self, 3022)
    
        app = AsyncApp(client=self.web_client)
    
        result = {"shortcut": False, "command": False}
    
        @app.shortcut("do-something")
        async def shortcut_handler(ack):
            result["shortcut"] = True
            await ack()
    
        @app.command("/hello-socket-mode")
        async def command_handler(ack):
            result["command"] = True
            await ack()
    
        handler = AsyncSocketModeHandler(
            app_token="xapp-A111-222-xyz",
            app=app,
        )
        try:
            handler.client.wss_uri = "ws://localhost:3022/link"
    
            await handler.connect_async()
            await asyncio.sleep(2)  # wait for the message receiver
    
            await handler.client.send_message("foo")
    
            await asyncio.sleep(2)
>           assert result["shortcut"] is True
E           assert False is True

.../adapter_tests_async/socket_mode/test_async_websockets.py:70: AssertionError
tests.adapter_tests_async.socket_mode.test_async_aiohttp.TestSocketModeAiohttp::test_events
Stack Traces | 8.03s run time
self = <tests.adapter_tests_async.socket_mode.test_async_aiohttp.TestSocketModeAiohttp object at 0x7f49469d3130>

    @pytest.mark.asyncio
    async def test_events(self):
        start_socket_mode_server(self, 3021)
    
        app = AsyncApp(client=self.web_client)
    
        result = {"shortcut": False, "command": False}
    
        @app.shortcut("do-something")
        async def shortcut_handler(ack):
            result["shortcut"] = True
            await ack()
    
        @app.command("/hello-socket-mode")
        async def command_handler(ack):
            result["command"] = True
            await ack()
    
        handler = AsyncSocketModeHandler(
            app_token="xapp-A111-222-xyz",
            app=app,
        )
        try:
            handler.client.wss_uri = "ws://localhost:3021/link"
    
            await handler.connect_async()
            await asyncio.sleep(2)  # wait for the message receiver
    
            await handler.client.send_message("foo")
    
            await asyncio.sleep(2)
>           assert result["shortcut"] is True
E           assert False is True

.../adapter_tests_async/socket_mode/test_async_aiohttp.py:70: AssertionError
tests.adapter_tests_async.socket_mode.test_async_lazy_listeners.TestSocketModeAiohttp::test_lazy_listeners
Stack Traces | 11s run time
self = <tests.adapter_tests_async.socket_mode.test_async_lazy_listeners.TestSocketModeAiohttp object at 0x7f49469d86d0>

    @pytest.mark.asyncio
    async def test_lazy_listeners(self):
        start_socket_mode_server(self, 3021)
    
        app = AsyncApp(client=self.web_client)
    
        result = {"lazy_called": False}
    
        @app.shortcut("do-something")
        async def shortcut_handler(ack):
            await ack()
    
        @app.event("message")
        async def handle_message_events(body, logger):
            logger.info(body)
    
        async def just_ack(ack):
            await ack()
    
        async def lazy_func(body):
            assert body.get("command") == "/hello-socket-mode"
            result["lazy_called"] = True
    
        app.command("/hello-socket-mode")(ack=just_ack, lazy=[lazy_func])
    
        handler = AsyncSocketModeHandler(
            app_token="xapp-A111-222-xyz",
            app=app,
        )
        try:
            handler.client.wss_uri = "ws://localhost:3021/link"
    
            await handler.connect_async()
            await asyncio.sleep(2)  # wait for the message receiver
            await handler.client.send_message("foo")
    
            spent_time = 0
            while spent_time < 5 and result["lazy_called"] is False:
                spent_time += 0.5
                await asyncio.sleep(0.5)
>           assert result["lazy_called"] is True
E           assert False is True

.../adapter_tests_async/socket_mode/test_async_lazy_listeners.py:79: AssertionError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@dependabot dependabot bot force-pushed the dependabot/pip/pytest-asyncio-lt-2 branch from b8abe0e to 2964ac2 Compare July 2, 2025 00:27
@dependabot dependabot bot force-pushed the dependabot/pip/pytest-asyncio-lt-2 branch 2 times, most recently from adddd4a to 0875cfd Compare July 2, 2025 16:54
Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](pytest-dev/pytest-asyncio@v0.1.1...v1.0.0)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-version: 1.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/pytest-asyncio-lt-2 branch from 0875cfd to 91b1953 Compare July 2, 2025 19:17
@WilliamBergamin
Copy link
Contributor

@dependabot rebase

Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 1, 2025

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@WilliamBergamin
Copy link
Contributor

@dependabot recreate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant